task 命令详解

| 选择喜欢的代码风格  

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

task 命令安装:


-bash/zsh: task command not found

# Windows (WSL2)
sudo apt-get update sudo apt-get install task

# Debian
apt-get install task

# Ubuntu
apt-get install task

# Alpine
apk add task

# Arch Linux
pacman -S task

# Kali Linux
apt-get install task

# Fedora
dnf install task

# OS X
brew install task

# Raspbian
apt-get install task

# Dockerfile
 dockerfile.run/task

# Docker
docker run cmd.cat/task task

task 命令补充说明:


Taskwarrior 可以根据您的工作流程进行扩展。您可以将其作为一个简单的应用程序来捕获任务、显示列表以及从列表中删除任务。但是,利用其功能,task 会变成一个复杂的数据查询工具,可以帮助您保持井然有序并完成工作。

task 命令语法:


task [subcommand] [args]

task 命令 Subcommands:


add [tags] [attrs] description
   Adds a new task to the task list.

log [tags] [attrs] description
   Adds a new task that is already completed, to the task list.

annotate ID description
   Adds an annotation to an existing task.

denotate ID description
   Deletes an annotation for the specified task. If the provided description matches an annotation exactly, the corresponding annotation is deleted. If the provided description matches annotations partly, the first partly matched annotation is deleted.

info ID
   Shows all data and metadata for the specified task.

ID
   With an ID but no specific command, taskwarrior runs the "info" command.

undo
   Reverts the most recent action. Obeys the confirmation setting.

shell
   Launches an interactive shell with all the task commands available.

duplicate ID [tags] [attrs] [description]
   Duplicates the specified task and allows modifications.

delete ID
   Deletes the specified task from task list.

start ID
   Marks the specified task as started.

stop ID
   Removes the start time from the specified task.

done ID [tags] [attrs] [description]
   Marks the specified task as done.

projects
   Lists all project names that are currently used by pending tasks, and the number of tasks for each.

tags
   Show a list of all tags used. Any special tags used are highlighted.

summary
   Shows a report of task status by project.

timesheet [weeks]
   Shows a weekly report of tasks completed and started.

history
   Shows a report of task history by month. Alias to history.monthly.

history.annual
   Shows a report of task history by year.
ghistory
   Shows a graphical report of task status by month. Alias to ghistory.monthly.
ghistory.annual
   Shows a graphical report of task status by year.
burndown.daily
   Shows a graphical burndown chart, by day.
burndown.weekly
   Shows a graphical burndown chart, by week.
burndown.monthly
   Shows a graphical burndown chart, by month.
calendar [ y | due [y] | month year [y] | year ]
   Shows a monthly calendar with due tasks marked.
stats
   Shows task database statistics.
import file
   Imports tasks in a variety of formats, from file or URL.
export
   Exports all tasks in the default format. This is an alias to the command export.yaml. Redirect the output to a file, if you wish to save it, or pipe it to another command.
export.csv
   Exports all tasks in CSV format. Redirect the output to a file, if you wish to save it, or pipe it to another command.
export.ical
   Exports all tasks in iCalendar format. Redirect the output to a file, if you wish to save it, or pipe it to another command.
export.yaml
   Exports all tasks in YAML 1.1 format. Redirect the output to a file, if you wish to save it, or pipe it to another command.
merge URL
   Merges two task databases by comparing the modifications that are stored in the undo.data files. The location of the second undo.data file must be passed on as argument. URL may have the following syntaxes:   

   ssh://[user@]host.xz[:port]/path/to/undo.data

   rsync://[user@]host.xz[:port]/path/to/undo.data

   [user@]host.xz:path/to/undo.data

   /path/to/local/undo.data

   You can set aliases for frequently used URLs in the .taskrc.

push URL
   Pushes the task database to a remote another location for distributing the changes made by the merge command.
   (See annotations above for valid URL syntaxes.)

pull URL
   Overwrites the task database with those files found at the URL.
   (See annotations above for valid URL syntaxes.)

color [sample | legend]
   Displays all possible colors, a named sample, or a legend containing all currently defined colors.
count [filter]
   Displays only a count of tasks matching the filter.
version
   Shows the taskwarrior version number
help
   Shows the long usage text.
show [all | substring]"
   Shows all the current settings in the taskwarrior configuration file. If a substring is specified just the settings containing that substring will be displayed.
config [name [value | '']]
   Add, modify and remove settings directly in the taskwarrior configuration. This command either modifies the 'name' setting with a new value of 'value', or adds a new entry that is equivalent to 'name=value':

   task config name value

   This command sets a blank value. This has the effect of suppressing any default value:

   task config name ''
   Finally, this command removes any 'name=...' entry from the .taskrc file:

   task config name

task 命令实例:


task 添加明天截止的新任务:

task add description due:tomorrow

task 任务task_id修改优先级:H|M|L:

task task_id modify priority:H|M|L

task 完成任务:

task task_id done

删除 task 任务:

task task_id delete

列出所有 task 打开的任务:

task list

task 列出本周结束前到期的未完成任务:

task list due.before:eow

task 按天显示图形燃尽图:

task burndown.daily

task 列出所有报告:

task reports

task 命令扩展阅读:


 

CommandNotFound ⚡️ 坑否 - 其他频道扩展阅读:




task 命令评论